﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;

public class PlayerStateAniPage : MonoBehaviour
{
    public Image img;

    public void PlayPlayerStateAni(string str)
    {

        Debug.Log(str);

        img.sprite = Resources.Load<Sprite>("BDUI/ani/"+str);
        img.transform.DOScale(1.3f, 0.3f);
        GameRoomPage.GetInstance().SetAudAndPlay(4);

        Invoke("HideObj", 0.5f);
    }

    private void HideObj()
    {
        gameObject.SetActive(false);
    }
}
